package java05_02;

public class Fruit {
    private String name;
    private String area;

    public Fruit(){

    }
    public Fruit(String name,String area){
        this.name=name;
        this.area=area;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {

        this.name = name;
    }

    public String getArea() {
        return area;
    }


    public void setArea(String area) {
        this.area = area;

    }

    @Override
    public String toString() {
        return "Fruit{" +
                "name='" + name + '\'' +
                ", area='" + area + '\'' +
                '}';
    }
}

